package com.team.recruitment_management_system.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.team.recruitment_management_system.pojo.dto.company.CompanyPageQuery;
import com.team.recruitment_management_system.pojo.entity.Company;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.team.recruitment_management_system.pojo.vo.CompanyInfoVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 86147
* @description 针对表【company(公司表)】的数据库操作Mapper
* @createDate 2024-03-21 20:28:40
* @Entity com.team.recruitment_management_system.pojo.entity.Company
*/
@Mapper
public interface CompanyMapper extends BaseMapper<Company> {

    IPage<CompanyInfoVo> getCompanyPage(Page<Company> userPage, CompanyPageQuery pageQuery);

    CompanyInfoVo getCompanyInfoById(int companyId);

    boolean updateViewNum(int companyId);

    List<CompanyInfoVo> getHotCompany();
}




